﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace EFCore.Models;

[Table("WarehouseLine")]
public partial class WarehouseLine
{
    [Key]
    [Column("Id_WarehouseLine")]
    public Guid IdWarehouseLine { get; set; }

    public string WarehouseLineCode { get; set; } = null!;

    public DateTime CreatTime { get; set; }

    public int Long { get; set; }

    public int Wide { get; set; }

    [Column("high")]
    public int High { get; set; }

    /// <summary>
    /// 是否使用
    /// </summary>
    public bool IsEnable { get; set; }

    /// <summary>
    /// 是否占用
    /// </summary>
    public bool IsOccupy { get; set; }

    /// <summary>
    /// 排
    /// </summary>
    public int Xaxis { get; set; }

    /// <summary>
    /// 列
    /// </summary>
    public int Yaxis { get; set; }

    /// <summary>
    /// 高
    /// </summary>
    public int Zaxis { get; set; }

    [Column("TheWarehouseId_Warehouse")]
    public Guid TheWarehouseIdWarehouse { get; set; }

    /// <summary>
    /// 仓库类型
    /// </summary>
    public string? Type { get; set; }

    [InverseProperty("IdWarehouseLineNavigation")]
    public virtual ICollection<Box> Boxes { get; set; } = new List<Box>();

    [ForeignKey("TheWarehouseIdWarehouse")]
    [InverseProperty("WarehouseLines")]
    public virtual Warehouse TheWarehouseIdWarehouseNavigation { get; set; } = null!;
}
